#ifndef MY_SPIN_GROUP_H
#define MY_SPIN_GROUP_H

#include <QWidget>
#include <QGroupBox>
#include "my_spin.h"
#include "common.h"

class My_spin_group : public QGroupBox
{
    Q_OBJECT
public:
    My_spin_group(const QString &title, QWidget *parent = nullptr);
    void setSingleStep(double val);
    void setMinimum(double val);
    double value_lf() {return lf->value();};
    double value_rf() {return rf->value();};
    double value_lb() {return lb->value();};
    double value_rb() {return rb->value();};

private:
    My_spin* lf;
    My_spin* rf;
    My_spin* lb;
    My_spin* rb;
    QGridLayout* layout;
};

#endif // MY_SPIN_GROUP_H
